package com.wedding.utils;

import java.util.UUID;

public class UUIDUtils {
    //获取32位的id值
    public static String UUID32(){
        String uuid = UUID.randomUUID().toString().substring(0, 32).replaceAll("-", "");
        return uuid;
    }

    //获取32位的id值
    public static String UUID16(){
        String uuid = UUID.randomUUID().toString().substring(0, 16).replaceAll("-", "");
        return uuid;
    }
}
